package com.ruoyi.zxjd.work.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作模板对象 work_template
 * 
 * @author lcc
 * @date 2021-01-21
 */
public class WorkTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long templateId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 模板内容 */
    @Excel(name = "模板内容")
    private String templateContent;

    /** 汇总类型（0不汇总 1数值求和 2分组扩展） */
    @Excel(name = "汇总类型")
    private String gatherFlag;
    
    /** 模板状态（0正常 1关闭） */
    @Excel(name = "模板状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateContent(String templateContent) 
    {
        this.templateContent = templateContent;
    }

    public String getTemplateContent() 
    {
        return templateContent;
    }
    public String getGatherFlag() {
        return gatherFlag;
    }

    public void setGatherFlag(String gatherFlag) {
        this.gatherFlag = gatherFlag;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("templateName", getTemplateName())
            .append("templateContent", getTemplateContent())
            .append("gatherFlag", getGatherFlag())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

}
